import request from '@/utils/request'

// 查询代付订单信息列表
export function listP_order(query) {
  return request({
    url: '/payment/p_order/list',
    method: 'get',
    params: query
  })
}

// 查询代付订单信息详细
export function getP_order(id) {
  return request({
    url: '/payment/p_order/' + id,
    method: 'get'
  })
}

// 新增代付订单信息
export function addP_order(data) {
  return request({
    url: '/payment/p_order',
    method: 'post',
    data: data
  })
}

// 修改代付订单信息
export function updateP_order(data) {
  return request({
    url: '/payment/p_order',
    method: 'put',
    data: data
  })
}

// 删除代付订单信息
export function delP_order(id) {
  return request({
    url: '/payment/p_order/' + id,
    method: 'delete'
  })
}
